package com.lz.old.mixed;

 class Test extends Father {
    private String name = "test";

    public static void main(String[] args) {
        Test test = new Test();
        String s = "12345679456545455";
        int n = s.length();
        for (int i = 3; i < n; i += 3) {
            s = s.substring(0, n - i) + "," + s.substring(n - i);
        }
//		for (n-=3;n>0;n-=3) {
//			s=s.substring(0, n)+","+s.substring(n)	;
//		}

        System.out.println(test.getName() + s);
    }
}

class Father {
    private String name = "father";

    public String getName() {
        return name;
    }
}
public class StringDemo {}